package com.hyg.lib_common.DataModel.Music;

import android.os.Parcel;
import android.os.Parcelable;

import org.litepal.crud.LitePalSupport;

import java.util.ArrayList;
import java.util.Objects;

public class TestResultData extends LitePalSupport {

    private int id = 0;
    public String testId = "";    //检测结果ID
    public String patientId = "";    //病人ID
    public String testTime;     //检测时间
    public int yiyuLevel;      //检测结果等级  1正常 2轻度 3中度 4重度
    public String yiyuResult = "";    //抑郁结果
    public int yajiankangLevel;      //检测结果等级  1正常 2轻度 3中度 4重度
    public String yajiankangResult = "";    //亚健康结果
    public int tizhiLevel;      //检测结果等级  1正常 2轻度 3中度 4重度
    public String tizhiResult = "";    //体质结果
    public int xinliyaliLevel;      //检测结果等级  1正常 2轻度 3中度 4重度
    public String xinliyaliResult = "";    //心理压力结果结果
    public int shimianLevel;      //检测结果等级  1正常 2轻度 3中度 4重度
    public String shimianResult = "";    //失眠结果
    public int jiaolvLevel;      //检测结果等级  1正常 2轻度 3中度 4重度
    public String jiaolvResult = "";    //焦虑结果
    public ArrayList<String> musicIdList = new ArrayList<>();



    public TestResultData() {

    }

    //重写equals方法, 使得可以用contains方法来判断列表中是否存在类的实例
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TestResultData music = (TestResultData) o;
        return Objects.equals(testId, music.testId);
    }

    public String getTestId() {
        return testId;
    }

    public void setTestId(String testId) {
        this.testId = testId;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getTestTime() {
        return testTime;
    }

    public void setTestTime(String testTime) {
        this.testTime = testTime;
    }

    public int getYiyuLevel() {
        return yiyuLevel;
    }

    public void setYiyuLevel(int yiyuLevel) {
        this.yiyuLevel = yiyuLevel;
    }

    public String getYiyuResult() {
        return yiyuResult;
    }

    public void setYiyuResult(String yiyuResult) {
        this.yiyuResult = yiyuResult;
    }

    public int getYajiankangLevel() {
        return yajiankangLevel;
    }

    public void setYajiankangLevel(int yajiankangLevel) {
        this.yajiankangLevel = yajiankangLevel;
    }

    public String getYajiankangResult() {
        return yajiankangResult;
    }

    public void setYajiankangResult(String yajiankangResult) {
        this.yajiankangResult = yajiankangResult;
    }

    public int getTizhiLevel() {
        return tizhiLevel;
    }

    public void setTizhiLevel(int tizhiLevel) {
        this.tizhiLevel = tizhiLevel;
    }

    public String getTizhiResult() {
        return tizhiResult;
    }

    public void setTizhiResult(String tizhiResult) {
        this.tizhiResult = tizhiResult;
    }

    public int getXinliyaliLevel() {
        return xinliyaliLevel;
    }

    public void setXinliyaliLevel(int xinliyaliLevel) {
        this.xinliyaliLevel = xinliyaliLevel;
    }

    public String getXinliyaliResult() {
        return xinliyaliResult;
    }

    public void setXinliyaliResult(String xinliyaliResult) {
        this.xinliyaliResult = xinliyaliResult;
    }

    public int getShimianLevel() {
        return shimianLevel;
    }

    public void setShimianLevel(int shimianLevel) {
        this.shimianLevel = shimianLevel;
    }

    public String getShimianResult() {
        return shimianResult;
    }

    public void setShimianResult(String shimianResult) {
        this.shimianResult = shimianResult;
    }

    public int getJiaolvLevel() {
        return jiaolvLevel;
    }

    public void setJiaolvLevel(int jiaolvLevel) {
        this.jiaolvLevel = jiaolvLevel;
    }

    public String getJiaolvResult() {
        return jiaolvResult;
    }

    public void setJiaolvResult(String jiaolvResult) {
        this.jiaolvResult = jiaolvResult;
    }

    public ArrayList<String> getMusicIdList() {
        return musicIdList;
    }

    public void setMusicIdList(ArrayList<String> musicIdList) {
        this.musicIdList = musicIdList;
    }
}
